package com.nctu.dm.fpgrowth;
import java.io.*;
import java.io.IOException;

public class Main {
	    public static void main(String[] args) {
	    	System.out.println("Fetch input....");
	    	TrajectoryDataset MLD = new TrajectoryDataset("C:\\dataset for DM\\sample4.dat");
	    	//MovieLensDataset MLD = new MovieLensDataset("C:\\Users\\aggoe\\Dropbox\\DM\\HW\\dm2013_dataset_sample.dat");
	    	//MovieLensDataset MLD = new MovieLensDataset("C:\\Users\\aggoe\\Dropbox\\DM\\HW\\fpgrowth\\FPGrowth_20110519\\input\\sample3.dat");
	    	System.out.println("Fetched, Start to analyze");
	    	//MLD.PrintConvertedMovieLensDataset();
	    	
	    
	    	//try to enter by keyboard------------------
	    	BufferedReader DataIn= new BufferedReader(new InputStreamReader(System.in));
	    	String t="";
	    	System.out.print("Enter Minsup=");
	    	try{
	    		t=DataIn.readLine();
	    			    	}catch(IOException e){
	    		System.out.print("Error!");
	    	}
	    	FPG Fpg = new FPG(MLD.GetCMLD(),Integer.parseInt(t));
	    	//---------------------------------------
	    	
	    //	FPG Fpg = new FPG(MLD.GetCMLD(),Common.mSupport);
	    	
	    	
	    }
};
